#include <func.h>

int main(int argc,char* argv[])
{
    if(argc < 2)
        error(1,0,"Usag:argv num!");

    int sign;
    sscanf(argv[1],"%d",&sign);

    for(int i = 2;i<argc;i++)
    {
        pid_t pid;
        sscanf(argv[i],"%d",&pid);

        if(kill(pid,sign) == -1)
            error(1,errno,":%d:%d",pid,sign);
    }
    return 0;
}
